//
//  XJModel.swift
//  XJSqlite3Tool
//
//  Created by shanlin on 2017/7/1.
//  Copyright © 2017年 善林(中国)金融信息服务有限公司. All rights reserved.
//

import UIKit

class XJModel: NSObject {

   var id: Int = 1000000
   var name0000: String = "善林金融"
     var age2: Int = 2013
    var score: Float = 88.0
    var isValid: Bool = true
    
    var dict: [String: String] = ["李胜兵":"iOS负责人"]
    var arr: [String] = [String]()
    var xxxxxxx: Double = 10.0000001111
    
    var data: Data = Data()
    //var redColor: UIColor = UIColor.white

}

extension XJModel: XJSqlite3ModelProtocol {
    
    static func setupPrimaryKey() -> String {
        return "id"
    }
    
    static func ignoreColumnName() -> [String] {
        return ["dict","arr","isValid","xxxxxxx","data"]
    }
    
    static func newNameToOldName() -> [String : String] {
        return [
               "age2": "age"
               ]
    }
}
